<template>
    <div v-if="show">
        <image @click="handleClick" class="check" :src="imgPath(checked ? 'checked.png' : 'nochoose.png')"></image>
    </div>
</template>

<script>
export default {
  name: 'check',
  props: ['show', 'checked'],
  methods: {
    handleClick () {
      this.$emit('doclick')
    }
  }
}
</script>

<style scoped>
    .check {
        width: 42px;
        height: 42px;
    }
</style>
